
import Request from '../util/request'

export default class Supplier extends Request {

  getCategory(data) {
    return this.request({
      url: '/api/uni/product/category/tree',
      data
    })
  }

  editCategory(data) {
    return this.request({
      url: '/api/uni/product/category/edit',
      data
    })
  }

  removeCategory(data) {
    return this.request({
      url: '/api/uni/product/category/remove',
      data
    })
  }

  getProduct(data) {
    return this.request({
      url: '/api/uni/product/product/list',
      data
    })
  }

  editProduct(data) {
    return this.request({
      url: '/api/uni/product/product/edit',
      data
    })
  }

  removeProduct(data) {
    return this.request({
      url: '/api/uni/product/product/remove',
      data
    })
  }

  // 资料
  my(data) {
    return this.request({
      url: '/api/uni/supplier/supplier/view',
      data
    })
  }



}
